package com.ren.mianshi.db.dao;

import androidx.room.Dao;
import androidx.room.Query;

import com.ren.mianshi.db.table.ChatTable;

import java.util.List;

/**
 * @author renheng
 * @Description
 * @date 2023/1/3
 */

@Dao
public abstract class ChatDao extends BaseDao<ChatTable> {


    @Query("SELECT * FROM chat_table")
    public abstract List<ChatTable> queryListAll();

    @Query("SELECT * FROM chat_table order by timeillons desc")
    public abstract List<ChatTable> queryListAllDesc();


}
